package com.voxel.sense.infomsg.utils.marker.cluster.data;

import com.amap.api.maps.model.LatLng;

/**
 */

public class RegionItem<T> implements ClusterItem<T> {
    private LatLng mLatLng;
    private String mType;
    private T mObject;
    private boolean mVisble;

    public RegionItem(LatLng latLng, String type, T object) {
        this(latLng,type,object,true);
    }

    public RegionItem(LatLng latLng, String type, T object, boolean visble) {
        mLatLng = latLng;
        mType = type;
        mObject = object;
        mVisble = visble;
    }

    @Override
    public LatLng getPosition() {
        // TODO Auto-generated method stub
        return mLatLng;
    }

    @Override
    public String getMarkerType() {
        return mType;
    }

    @Override
    public T getObject() {
        return mObject;
    }


    @Override
    public boolean getVisible() {
        return mVisble;
    }

    @Override
    public void setVisible(boolean b) {
        mVisble = b;
    }

}
